2024 Method
Changes 0
M

Element.IsValidType

Description:
Checks if given type is valid for the set of elements.
Remarks:
A type is valid for the set of elements if it is valid for each and every element in the set.
Overloads (2):
IsValidType(Document,ICollection[ElementId],ElementId)
public static bool IsValidType(
	Document document,
	ICollection<ElementId> elementIds,
	ElementId typeId
)
Return Value bool True if all elements can have a type assigned and this type is valid for all elements, false otherwise.